package ksv.cron;

/**
 * @创建人 xiaojiancheng
 * @时间 2020/9/26
 * @描述 $
 */
public class CronCst {
    public static class Status {
        public static final String COMMON = "common";
        public static final String DISABLED = "disabled";
        public static final String COMPLETE = "complete";
    }

    public static class CallWay {
        public static final  String HTTP = "http";
        public static final  String KAFKA = "kafka";
        public static final  String DUBBO = "dubbo";
        public static final  String ROCKET = "rocket";
    }

    public static class CronTimeStatus {
        /**
         *  这里用于上下文在指定执行时间的时候，对状态的描述
         *  {@link #NORMAL}         正常的时间，没有对时间进行修改
         *  {@link #BEFORE}         当前以后的时间没有触发，但是在当前之前45s内，有有效的触发事件
         *  {@link #INVALID}        在当前之前45s之内均没有生效事件
         *  {@link #TEMPORARY}      这只是个临时的
         */
        public static final String NORMAL = "normal";
        public static final String BEFORE = "before";
        public static final String INVALID = "invalid";
        public static final String TEMPORARY = "temporary";
    }
}
